const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu('HelloShader/NoiseShader')
export default class NoiseShader extends cc.Component {

    /** 图片 */
    @property({ type: cc.Sprite, tooltip: '图片' })
    image: cc.Sprite = null;

    start() {
        this.image.getMaterial(0).setProperty('distanceFactor', 60.0);
    }
}